package com.workManager.service;

import com.github.pagehelper.PageInfo;
import com.workManager.pojo.TbParameter;
import com.workManager.pojo.TbParameterType;
import com.workManager.vo.ParameterTypeVo;

import java.util.List;
import java.util.Map;

/**
 * Created by Thinkpad on 2017/2/24 0024.
 */
public interface ParameterService {
    List<TbParameter>  queryByParameterType(String parameterType);

    int insertParameterType(TbParameterType parameterType);
    int insertParameter(TbParameter parameter);
    int deleteParameterType(List<String> typeIds);
    int deleteParameter(String id);
    int deleteParameterByList(List<String> ids);
    PageInfo<ParameterTypeVo> queryParameterType2(Map map);
    int update(TbParameter parameter);
    int updateParameterType(TbParameterType parameterType);
    PageInfo<TbParameter> queryParameter(Map map);

    PageInfo<TbParameterType> queryParameterType(Map map);

    List<TbParameterType> getChildrenByName(String paramTypeName);

    List<Integer> getParamTypeIdByList(List<TbParameterType> parameterTypeList);

    Map<String, Integer> getNameAndIdMapByParameterTypes(List<TbParameterType> parameterTypeList);

    List<TbParameter> getParametersByParamTypeIds(List<Integer> paramTypeIdList);

    Map<String, Integer> getNameAndIdMapByParameters(List<TbParameter> parameterList);

    List<String> getParameterNames(List<TbParameter> parameterList);

}
